#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
//int main()
//{
//	//sizeof s = 10;
//	int a = 100;
//	printf("%zd\n",sizeof(a));
//	printf("%zd\n", sizeof a);
//	printf("%zd\n", sizeof(3+3.5));
//
//	return 0;
//}

int main()
{
	c:
	int a = 0;
	scanf("%d", &a);
	if(a < 18)
		printf("saonian\n");
	else if (a <= 44)
		printf("laaonian\n");
	else if (a <= 59)
		printf("qingnian\n");
	goto c;
	return 0;
}